package com.banzhi.shop.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.banzhi.shop.MyApp;
import com.banzhi.shop.R;
import com.banzhi.shop.base.BaseActivity;
import com.banzhi.shop.utils.Translucent;

public class OrderManageActivity extends BaseActivity implements View.OnClickListener {

    private LinearLayout mLlShopOrder;
    private LinearLayout mLlCollegeOrder;
    private LinearLayout mLlGroupingOrder;
    private LinearLayout mLlChooseOrder;
    private ImageView mIv_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order_manage);
        Translucent.setTranslucent(this);
        initView();
        initListener();

    }

    private void initView() {
        mLlShopOrder = (LinearLayout) findViewById(R.id.ll_shop_order);
        mLlCollegeOrder = (LinearLayout) findViewById(R.id.ll_college_order);
        mLlGroupingOrder = (LinearLayout) findViewById(R.id.ll_grouping_order);
        mLlChooseOrder = (LinearLayout) findViewById(R.id.ll_choose_order);
        mIv_back = (ImageView) findViewById(R.id.iv_back);

    }

    private void initListener() {
        mIv_back.setOnClickListener(this);
        mLlShopOrder.setOnClickListener(this);
        mLlCollegeOrder.setOnClickListener(this);
        mLlGroupingOrder.setOnClickListener(this);
        mLlChooseOrder.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.ll_shop_order:
                //跳转店铺订单
                Intent intent1 = new Intent(this, OrderManagementActivity2.class);
                startActivity(intent1);
            /*   Intent intent1 = new Intent(this, MyGroupingActivity2.class);
                startActivity(intent1);*/


                break;

            case R.id.ll_college_order:
                //跳转学院订单
                Intent intent2 = new Intent(this, CollegeOrderActivity.class);
                startActivity(intent2);
                break;

            case R.id.ll_grouping_order:
                //跳转拼团订单

                startActivity(new Intent(this,PintuanOrderActivity.class));
                break;

            case R.id.ll_choose_order:
                //跳转任选订单
                startActivity(new Intent(OrderManageActivity.this,ChoiceOrderActivity.class));

                break;
        }

    }
}
